//
//  CommunityTarentoCollectionCell.m
//  ArtDog
//
//  Created by dllo on 16/9/3.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CommunityTarentoCollectionCell.h"
#import "CommunityListUsers.h"
#import "UIImageView+WebCache.h"

@interface CommunityTarentoCollectionCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;

@property (weak, nonatomic) IBOutlet UILabel *usernameLabel;

@property (weak, nonatomic) IBOutlet UILabel *viewerLabel;

@end

@implementation CommunityTarentoCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setUserModel:(CommunityListUsers *)userModel
{
    _userModel = userModel;
    [_iconImageView sd_setImageWithURL:[NSURL URLWithString:userModel.headPic] placeholderImage:[UIImage imageNamed:@"placeholder"]];
    _usernameLabel.text = userModel.userName;
    _viewerLabel.text = [NSString stringWithFormat:@"%@人关注", userModel.viewerNum];
}

@end
